﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DbControl
{
    [Index("uk_id", nameof(id), true)]
    public class warningdatas
    {
        [Column(IsIdentity = true, IsPrimary = true)]
        public long id { get; set; }
        public long? sensordata_id { get; set; }
        [Column(DbType = "nvarchar(50)")]
        public string sensor_sn { get; set; }
        [Column(DbType = "nvarchar(50)")]
        public string device_code { get; set; }
        [Column(DbType = "nvarchar(50)")]
        public string device_name { get; set; }
        [Column(DbType = "nvarchar(50)")]
        public string parameter_code { get; set; }
        public float? value { get; set; }
        public DateTime? warn_time { get; set; }
        public int? status { get; set; }
        public int? user_id { get; set; }
        public DateTime? remove_time { get; set; }
        [Column(DbType = "nvarchar(10)")]
        public string statu { get; set; }
        public int? flag { get; set; }
    }
}
